package com.example.data.repository

import com.example.domain.network.NetworkService
import com.example.domain.network.ResultWrapper
import com.example.domain.repository.LoginRepository
import com.example.domain.model.LoginRes
import kotlinx.serialization.InternalSerializationApi

class LoginRepositoryImpl(
    val networkService: NetworkService
) : LoginRepository {
    @OptIn(InternalSerializationApi::class)
    override suspend fun login(username: String, password: String): ResultWrapper<LoginRes> {
        return networkService.login(username, password)
    }
} 